/**
* @author:kellen
* @contact:xiekellen@hotmail.com
* @company:achivo-gz
* @created on:
* @modified on:
*/

package com.sasis.service.impl;

import java.util.List;

import com.sasis.service.impl.BaseManager;
import com.sasis.model.FlightTransferFood;
import com.sasis.dao.FlightTransferFoodDao;
import com.sasis.service.FlightTransferFoodManager;

import com.sasis.util.PageList;
import com.sasis.util.PageRequest;

public class FlightTransferFoodManagerImpl extends BaseManager implements FlightTransferFoodManager {
    private FlightTransferFoodDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setFlightTransferFoodDao(FlightTransferFoodDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.sasis.service.FlightTransferFoodManager#getFlightTransferFoods(com.sasis.model.FlightTransferFood)
     */
    public List getFlightTransferFoods(final FlightTransferFood flightTransferFood) {
        return dao.getFlightTransferFoods(flightTransferFood);
    }

    /**
     * @see com.sasis.service.FlightTransferFoodManager#getFlightTransferFood(String id)
     */
    public FlightTransferFood getFlightTransferFood(final String id) {
        return dao.getFlightTransferFood(new Integer(id));
    }

    /**
     * @see com.sasis.service.FlightTransferFoodManager#saveFlightTransferFood(FlightTransferFood flightTransferFood)
     */
    public int saveFlightTransferFood(FlightTransferFood flightTransferFood) {
       return dao.saveFlightTransferFood(flightTransferFood);
    }

    /**
     * @see com.sasis.service.FlightTransferFoodManager#removeFlightTransferFood(String id)
     */
    public void removeFlightTransferFood(FlightTransferFood flightTransferFood) {
        dao.removeFlightTransferFood( flightTransferFood);
    }
  
    public void deleteFlightTransferFood(FlightTransferFood flightTransferFood){
    	
    	dao.deleteFlightTransferFood(flightTransferFood);
    }
    
    public PageList queryForPageList(String listStatementId,  
    		Object parameterObject, PageRequest pageRequest){
	return dao.queryForPageList(listStatementId,   parameterObject, pageRequest);
    }
}
